﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class OpenAd : MonoBehaviour
{
    public enum OpenAdType
    {
        Main, Page
    }

    public OpenAdType type;

    private void OnEnable()
    {
        if (!AdManager1.instance.ShieldAddress)
        {
            if (type == OpenAdType.Main) AdManager.single.ShowBanner();
            else if (type == OpenAdType.Page && Time.fixedTime > 3) AdManager.single.ShowNative();
        }
    }
}
